<!DOCTYPE html>
<html>
<head>
    <title><?=$site_name?> | <?=$title_page?></title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <?php foreach ($styles as $file_style) : ?>
        <?=html::style($file_style)?>
    <?php endforeach;?>
    <?php foreach ($scripts as $file_script) : ?>
        <?=html::script($file_script)?>
    <?php endforeach;?>
</head>
<body>

<?php if($auth_user) :?>
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
                <a class="brand" href="<?=URL::base()?>"><?=$site_name?></a>
                <div class="nav-collapse collapse">
                    <ul class="nav pull-right">
                        <li><?=Html::anchor('logout', __('Log out ('.$auth_user->email.')'))?></li>
                    </ul>
                </div>
            </div>
        </div>
    </div>
<?php endif; ?>

<div id="wrap" class="indent-50">
    <div class="container" id="main">
        <div class="row">
            <!--Content-->
            <div class="span12"><?=$content?></div>
            <!--/Content-->
        </div>
    </div>
</div>

<!--Footer-->
<div id="footer" class="text-center">
    &copy; Copyright
</div>
<!--Footer-->
</body>
</html>